package com.hgkj.cloud.base.service;

import com.hgkj.cloud.base.common.PageInfo;
import com.hgkj.cloud.base.domain.TenantNotices;

import java.util.List;
import java.util.Map;

public interface TenantNoticesService {

    int deleteByPrimaryKey(Long id);

    int insert(TenantNotices record);

    int insertSelective(TenantNotices record);

    TenantNotices selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TenantNotices record);

    int updateByPrimaryKey(TenantNotices record);

    Long findNoticeCount(Map<String, Object> map);

    List<TenantNotices> listNotices(PageInfo pi, Map<String, Object> map);

    List<TenantNotices> listUnreadNotices(PageInfo pi,Map<String, Object> map);

    Long findUnreadNoticeCount(Map<String, Object> map);

    int flagNoticeRead(Long id);
}
